package com.springboot.study.service.impl;

import com.springboot.study.service.Retryable;
import com.springboot.study.service.UserFacade;

/**
 * @Author: guodong
 * @Date: 2021/9/16 13:19
 * @Version: 1.0
 * @Description:
 */
public class UserFacadeImpl implements UserFacade {

    @Override
    public void add() throws Exception {
        System.out.println("添加用户。。。");
        throw new RuntimeException();
    }

    @Override
    @Retryable(maxAttemps = 3)
    public void query() {
        System.out.println("查询用户。。。");
        throw new RuntimeException();
    }

}